import request from '@/utils/request'

// 查询分享类型配置列表
export function listBlogShareConfig(query) {
  return request({
    url: '/blog/blogShareConfig/list',
    method: 'get',
    params: query
  })
}

// 查询分享类型配置详细
export function getBlogShareConfig(id) {
  return request({
    url: '/blog/blogShareConfig/' + id,
    method: 'get'
  })
}

// 新增分享类型配置
export function addBlogShareConfig(data) {
  return request({
    url: '/blog/blogShareConfig',
    method: 'post',
    data: data
  })
}

// 修改分享类型配置
export function updateBlogShareConfig(data) {
  return request({
    url: '/blog/blogShareConfig',
    method: 'put',
    data: data
  })
}

// 删除分享类型配置
export function delBlogShareConfig(id) {
  return request({
    url: '/blog/blogShareConfig/' + id,
    method: 'delete'
  })
}
